package com.cx.mall.goods.service.impl;


import com.cx.mall.common.entity.goods.entity.Brand;
import com.cx.mall.goods.mapper.BrandMapper;
import com.cx.mall.goods.service.IBrandService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 品牌表 服务实现类
 * </p>
 *
 * @author zs
 * @since 2025-08-07
 */
@Service
public class BrandServiceImpl extends ServiceImpl<BrandMapper, Brand> implements IBrandService {

    @Autowired
    private BrandMapper brandMapper;

    @Override
    public List<Brand> getBrandListByThreeCategoryId(Integer id) {
        return brandMapper.getBrandListByThreeCategoryId(id);
    }

    @Override
    public List<Brand> getBrandListByTwoCategoryId(Integer id) {
        return brandMapper.getBrandListByTwoCategoryId(id);
    }

    @Override
    public List<Brand> getBrandListByOneCategoryId(Integer id) {
        return brandMapper.getBrandListByOneCategoryId(id);

    }
}
